// 引入mongoose插件
const mongoose = require('mongoose')


// 创建用户表
module.exports = mongoose.model(
    'user',
    {
        username: {
            type: String,
        },
        password: {
            type: String
        },
        avatar: {
            type: String,
        },
        isAdmin: {
            type: Boolean
        }
    }
)


